<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Category
 * 
 * Some description text...
 * Operates the following tables:
 * - table 1
 * - table 2
 * 
 * @package     Main
 * @author      Lukas Fritsch <jejanim@gmail.com>
 * @version     0.1 (08.08.2013)
 */    

class Categorymodel extends CI_Model{
            
    public function __construct(){
        parent::__construct();
    }
    
    public function get_categories(){
        $query = $this->db->get('category');
        
        if($query->num_rows == 0)
            return FALSE;
        
        return $query->result();
    }
}